package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProfessionaldevelopmentrecordsMapper;
import com.ruoyi.system.domain.Professionaldevelopmentrecords;
import com.ruoyi.system.service.IProfessionaldevelopmentrecordsService;

/**
 * 专业业绩录入Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-28
 */
@Service
public class ProfessionaldevelopmentrecordsServiceImpl implements IProfessionaldevelopmentrecordsService 
{
    @Autowired
    private ProfessionaldevelopmentrecordsMapper professionaldevelopmentrecordsMapper;

    /**
     * 查询专业业绩录入
     * 
     * @param id 专业业绩录入主键
     * @return 专业业绩录入
     */
    @Override
    public Professionaldevelopmentrecords selectProfessionaldevelopmentrecordsById(Long id)
    {
        return professionaldevelopmentrecordsMapper.selectProfessionaldevelopmentrecordsById(id);
    }

    /**
     * 查询专业业绩录入列表
     * 
     * @param professionaldevelopmentrecords 专业业绩录入
     * @return 专业业绩录入
     */
    @Override
    public List<Professionaldevelopmentrecords> selectProfessionaldevelopmentrecordsList(Professionaldevelopmentrecords professionaldevelopmentrecords)
    {
        return professionaldevelopmentrecordsMapper.selectProfessionaldevelopmentrecordsList(professionaldevelopmentrecords);
    }

    /**
     * 新增专业业绩录入
     * 
     * @param professionaldevelopmentrecords 专业业绩录入
     * @return 结果
     */
    @Override
    public int insertProfessionaldevelopmentrecords(Professionaldevelopmentrecords professionaldevelopmentrecords)
    {
        return professionaldevelopmentrecordsMapper.insertProfessionaldevelopmentrecords(professionaldevelopmentrecords);
    }

    /**
     * 修改专业业绩录入
     * 
     * @param professionaldevelopmentrecords 专业业绩录入
     * @return 结果
     */
    @Override
    public int updateProfessionaldevelopmentrecords(Professionaldevelopmentrecords professionaldevelopmentrecords)
    {
        return professionaldevelopmentrecordsMapper.updateProfessionaldevelopmentrecords(professionaldevelopmentrecords);
    }

    /**
     * 批量删除专业业绩录入
     * 
     * @param ids 需要删除的专业业绩录入主键
     * @return 结果
     */
    @Override
    public int deleteProfessionaldevelopmentrecordsByIds(Long[] ids)
    {
        return professionaldevelopmentrecordsMapper.deleteProfessionaldevelopmentrecordsByIds(ids);
    }

    /**
     * 删除专业业绩录入信息
     * 
     * @param id 专业业绩录入主键
     * @return 结果
     */
    @Override
    public int deleteProfessionaldevelopmentrecordsById(Long id)
    {
        return professionaldevelopmentrecordsMapper.deleteProfessionaldevelopmentrecordsById(id);
    }
}
